<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script type="module">
    // 模块化  common.js的规范  导入let a =  require('a.js') 导出 module.exports = 模块
    // es6的模块化  import 引入   export default = 模块
   import val from './a.js'
   console.log(val);

   console.log(val.a);
   console.log(val.fun());
   val.fn()

</script>
</html>